import { isHavePermission } from "@/utils/mUtils";
const permission = {
  inserted: function (el, binding) {
    const bindValue = binding.value;
    let isShow = isHavePermission(bindValue);
    if (!isShow) {
      if (el && el.parentNode) {
        // el.style.display="none";
        el.parentNode.removeChild(el);
      }
    }
  },
};
export default permission;
